import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    dname:'',
    carItems:[]
  },
  getters: {
  },
  mutations: {
    changeState(state,a){
      state.carItems.push(a)
      localStorage.setItem('carItems',JSON.stringify(state.carItems))
    }
  },
  actions: {
  },
  modules: {
  }
})
